package pers.linkong.asr.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import pers.linkong.asr.domain.TeacherBean;

// 学生
public interface TeacherMapper {
	// 增
	public int addTeacher(TeacherBean teacher);
	
	// 删
	public int deleteTeacher(int tid);
	
	// 查
	public TeacherBean getTeacherById(int tid);
	
	// 改
	public int updateTeacher(TeacherBean teacher);

	// 分页
	public List<TeacherBean> findTeacherByPage(
			@Param("teacher") TeacherBean teacher,
			@Param("start") long start,
			@Param("limit") long limit);
	
	// 统计
	public long getTeacherCount(@Param("teacher") TeacherBean teacher);
	
	// 登录
	public TeacherBean login(
			@Param("tid") int tid,
			@Param("tpass") String tpass
			);
}
